<?php include "conecta.php"; ?>

<!DOCTYPE html>
<html>
<head>
	<title>LOKRACE</title>
	<link href="estilo.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div id="box">
		<?php
			include "topo.inc";
		?>

	<div id="principal">
		<h2>LISTA DE CLIENTES</h2>

		<table width="900">
		<tr class="primeira">
			<td align="center" valign="middle">ID</td>
			<td align="center" valign="middle">NOME</td>
			<td align="center" valign="middle">CPF</td> 
		</tr>
		
		<?php
			$consulta = mysql_query ("SELECT*FROM clientes");
				
			while ($linha = mysql_fetch_array($consulta)){
				$id = $linha ['id'];
				$nome = $linha ['nome'];
				$cpf = $linha ['cpf'];
		?>
		
		<tr class="segunda">
			<td align="center" valign="middle"><?php echo $id; ?></td>
			<td align="center" valign="middle"><?php echo $nome; ?></td>
			<td align="center" valign="middle"><?php echo $cpf; ?></td>
		</tr>
		<?php } ?>
		</table>	
	</div>
		
			
		

		<?php
			include "rodape.inc";
		?>	
	</div>
		
</body>
</html>